/*
    Questa classe rappresenta un sistema autonomo (AS).
*/

using namespace std;

class AS
{

    private:
	int number;
	string name;
	string owner;
	bool state;

	public:
	AS();
	AS(int number, string name, string owner, bool state);
	int getNumber();
	string getName();
	string getOwner();
	bool getState();
	bool setState(bool state);
	void print();
};

AS::AS()
{;}

AS::AS(int number, string name, string owner, bool state)
{
	this->number = number;
	this->name = name;
	this->owner = owner;
	this->state = state;
}

int AS::getNumber()
{
	return this->number;
}

string AS::getName()
{
	return this->name;
}

string AS::getOwner()
{
	return this->owner;
}

bool AS::getState()
{
	return this->state;
}

bool AS::setState(bool state)
{
	this->state = state;
}

void AS::print()
{
    cout << number << " - " << name << " (" << owner << ")" << endl;
}
